/**
 * 
 */
package com.wang.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @author wsf
 *
 */
public class RegexUtils {
	
	

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		String source = "ajfsdskfjdajsdkfdasaafdasasadsdddddddaaaaaaaaaaaeededdd";
		
		Pattern pattern = Pattern.compile(".*da.*");
		Matcher matcher = pattern.matcher(source);
		for(int i = 0; i< matcher.groupCount(); i++) {
			System.out.println(matcher.group());
		}
	}

}
